Platform Explorer / Nuxeo Platform 2021.57

Contribution org.nuxeo.ecm.relations.web.contentview.contrib--contentViews

This contribution is part of XML component org.nuxeo.ecm.relations.web.contentview.contrib inside nuxeo-platform-relations-web-2021.57.3.jar /OSGI-INF/contentviews-contrib.xml

Extension Point

Extension point contentViews of component ContentViewService.

Registration Order

2
The registration order represents the order in which this contribution was registered on its target extention point. This will impact the override/merge behaviour when it is implemented on the target service, and is useful for proper customization of existing contributions.
You can influence this order by adding "require" tags in the containing component declaration, to make sure it is resolved after another component (see "Resolution Order" on components).

Contributed Items

  • <contentView name="relation_search">
    
          <title>label.search.results</title>
          <translateTitle>true</translateTitle>
    
          <emptySentence>label.content.empty.search</emptySentence>
          <translateEmptySentence>true</translateEmptySentence>
    
          <coreQueryPageProvider>
            <parameter>#{currentDocument.id}</parameter>
            <property name="coreSession">#{documentManager}</property>
            <whereClause docType="RelationSearch">
              <predicate operator="STARTSWITH" parameter="ecm:path">
                <field name="ecm_path" schema="relation_search"/>
              </predicate>
    
              <predicate operator="FULLTEXT" parameter="dc:title">
                <field name="dc_title" schema="relation_search"/>
              </predicate>
    
              <predicate operator="FULLTEXT" parameter="ecm:fulltext">
                <field name="ecm_fulltext" schema="relation_search"/>
              </predicate>
    
              <predicate operator="!=" parameter="ecm:currentLifeCycleState">
                <field name="currentLifeCycleState" schema="relation_search"/>
              </predicate>
    
              <fixedPart>
                ecm:uuid != ? AND ecm:mixinType != 'HiddenInNavigation' AND
                ecm:mixinType != 'Folderish' AND ecm:isVersion = 0
              </fixedPart>
            </whereClause>
            <sort ascending="true" column="dc:title"/>
            <pageSize>5</pageSize>
          </coreQueryPageProvider>
    
          <searchLayout name="relation_search"/>
    
          <showPageSizeSelector>true</showPageSizeSelector>
          <useGlobalPageSize>true</useGlobalPageSize>
          <refresh>
            <event>documentChanged</event>
            <event>documentChildrenChanged</event>
          </refresh>
          <cacheKey>only_one_cache</cacheKey>
          <cacheSize>1</cacheSize>
    
          <resultLayouts>
            <layout iconPath="/icons/document_listing_icon.png" name="relation_document_listing" title="document_listing" translateTitle="true"/>
          </resultLayouts>
    
        </contentView>

XML Source

<extension point="contentViews" target="org.nuxeo.ecm.platform.ui.web.ContentViewService">

    <contentView name="relation_search">

      <title>label.search.results</title>
      <translateTitle>true</translateTitle>

      <emptySentence>label.content.empty.search</emptySentence>
      <translateEmptySentence>true</translateEmptySentence>

      <coreQueryPageProvider>
        <parameter>#{currentDocument.id}</parameter>
        <property name="coreSession">#{documentManager}</property>
        <whereClause docType="RelationSearch">
          <predicate operator="STARTSWITH" parameter="ecm:path">
            <field name="ecm_path" schema="relation_search"/>
          </predicate>

          <predicate operator="FULLTEXT" parameter="dc:title">
            <field name="dc_title" schema="relation_search"/>
          </predicate>

          <predicate operator="FULLTEXT" parameter="ecm:fulltext">
            <field name="ecm_fulltext" schema="relation_search"/>
          </predicate>

          <predicate operator="!=" parameter="ecm:currentLifeCycleState">
            <field name="currentLifeCycleState" schema="relation_search"/>
          </predicate>

          <fixedPart>
            ecm:uuid != ? AND ecm:mixinType != 'HiddenInNavigation' AND
            ecm:mixinType != 'Folderish' AND ecm:isVersion = 0
          </fixedPart>
        </whereClause>
        <sort ascending="true" column="dc:title"/>
        <pageSize>5</pageSize>
      </coreQueryPageProvider>

      <searchLayout name="relation_search"/>

      <showPageSizeSelector>true</showPageSizeSelector>
      <useGlobalPageSize>true</useGlobalPageSize>
      <refresh>
        <event>documentChanged</event>
        <event>documentChildrenChanged</event>
      </refresh>
      <cacheKey>only_one_cache</cacheKey>
      <cacheSize>1</cacheSize>

      <resultLayouts>
        <layout iconPath="/icons/document_listing_icon.png" name="relation_document_listing" title="document_listing" translateTitle="true"/>
      </resultLayouts>

    </contentView>

  </extension>